package org.itboys.fuzion.entity;

import org.itboys.fuzion.constant.FuzionConstants;
import org.itboys.mongodb.entity.BaseLongIdEntity;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
/**
 * 会员和店铺收支记录明细表
 * @author weisky
 *
 * 2016年4月15日
 */
@Entity(value = "IncomeExpenditureRecords", noClassnameStored = true)
public class IncomeExpenditureRecords extends BaseLongIdEntity{

	private static final long serialVersionUID = 4603255457932734706L;
	
	@Indexed
	private Long memberId;//店铺或者会员的ID
	@Indexed
	private Integer type = FuzionConstants.TYPE_ONE;//1:代表会员  2：代表店铺
	private int money;//收益的金额  正数代表收入   负数代表支出 ;统计后的值要和FuziongMemberStatistics表对应
	private String objType = FuzionConstants.IncomeExpenditure.UNKNOWN;//受益的来源类型 0:未知来源  1：店铺奖励  2：会员分红 ....其他根据业务需求自定义
	private String objId = FuzionConstants.IncomeExpenditure.UNKNOWN;//来源的ID  0:未知来源
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	public int getMoney() {
		return money;
	}
	public void setMoney(int money) {
		this.money = money;
	}
	public String getObjType() {
		return objType;
	}
	public void setObjType(String objType) {
		this.objType = objType;
	}
	public String getObjId() {
		return objId;
	}
	public void setObjId(String objId) {
		this.objId = objId;
	}
	
}
